<template>
  <div id="homepage">
    <div class="toppart">
    <div class="learninfo">
      <home-title :homePageTitle="learnInfo"/>
    </div>
    <div class="course-progress">
      <home-title :homePageTitle="courseProgress"/>
    </div>
    </div>
    <div class="bottompart">
      <div class="learn-path">
        <home-title :homePageTitle='learnPath'/>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component , Vue } from 'vue-property-decorator'
import HomeTitle from '../../components/common/homepage/HomeTitle.vue'

@Component({
  name:'HomePage',
  components:{
    HomeTitle
  }
})
export default class HomePage extends Vue{
  learnInfo:string='学习情况';
  courseProgress:string='课程进度';
  learnPath:string='学习路径'
}
</script>

<style lang="less" scoped>
#homepage{
  .toppart{
    display: flex;
     .learninfo,
     .course-progress{
       height: 25rem;
       padding: 0.5rem 2rem;
       border-radius: 0.5rem;
       background-color: #fff;
       box-shadow: 0 0 0 0 #aaa;
     }
  .learninfo{
    width: 30rem;
  }
  .course-progress{
    width: 51.3rem;
    margin-left: 1.5rem;
    text-align: center;
  }
  }
  .bottompart{
    .learn-path{
      width: 100%;
      height: 17rem;
      margin-top: 1.5rem;
      padding: 0.5rem 2rem;
      border-radius: 0.5rem;
      background-color: #fff;
      box-shadow: 0 0 0 0 #aaa;
    }
  }
}
</style>